package com.clwl.supervise.superviseapp;

import com.clwl.supervise.superviseapp.config.UserAuthFilter;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@EnableAsync
@EnableWebMvc
@EnableEncryptableProperties
@SpringBootApplication(scanBasePackages = "com.clwl.supervise.superviseapp.*")
public class SuperviseAppApplication {

	public static void main(String[] args) {
		SpringApplication.run(SuperviseAppApplication.class, args);
	}

	@Bean
	public UserAuthFilter userAuthFilter() {
		return new UserAuthFilter();
	}
}
